package com.pyb.java.commonutil.image;

import android.graphics.Bitmap;
import android.view.View;

public interface ImageLoadListener {
    /**
     * 加载失败
     *
     * @param imageUri
     * @param view
     * @param throwable
     */
    void onLoadFail(String imageUri, View view, Throwable throwable);


    /**
     * 加载成功
     *
     * @param bitmap
     */
    void onLoadSuccess(View view, Bitmap bitmap);

    void onProgressUpdate(int current, int total);
}
